import java.util.Scanner;

public class Binary {
    public static void main( String[] args){

        Scanner s = new Scanner(System.in);
        System.out.println("请输入一个数：");
        int number = s.nextInt();
        if(number<0)
        {
            number=-number;
        }
        final int p=number;
        String binary = "" ;
        
        if( number>0){
            
        while( number != 0 ){
            int y = number % 2 ; 
            binary = y + binary ; 
            number /= 2 ; 
        }
        System.out.println( p + " 的二进制形式是: " + binary );
    }
        s.close();
    }
}